package com.mooneros.study.designpattern.adapter;

/**
 * 对象适配器
 * @author mac
 */
public class ObjectAdapter implements UsbTarget{

   private final TypecAdapter typecAdapter;

   public ObjectAdapter(TypecAdapter typecAdapter) {
        this.typecAdapter = typecAdapter;
   }

    @Override
    public void usb() {
        this.typecAdapter.typec();
        // 转化处理
        System.out.println("typec-usb");
    }
}
